<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2021/9/1
  Time: 14:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@include file="adminMenu.jsp" %>
<!--/sidebar-->
<div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="adminIndex.jsp">首页</a><span
                class="crumb-step">&gt;</span><a
                class="crumb-name" href="adminDoUserGet">用户管理</a><span
                class="crumb-step">&gt;</span><span>修改用户</span></div>
    </div>
    <div class="result-wrap">
        <div class="result-content">
            <form action="adminDoUserUpdate" method="post" id="myform" name="myform">

                <input type="hidden" name="userStatus" value="${user.user_status}">
                <input type="hidden" name="userID" value="${user.user_id}">
                <input type="hidden" name="page" value="${page}">

                <table class="insert-tab" width="100%">
                    <tbody>
                    <tr>
                        <th><i class="require-red">*</i>用户名：</th>
                        <td>
                            <input class="common-text required" id="userName" name="userName" size="50"
                                   value="${user.user_name}"
                                   type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>登录密码：</th>
                        <td>
                            <input class="common-text required" id="userPassword" name="userPassword" size="50"
                                   value="${user.user_password}"
                                   type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>用户性别：</th>
                        <td>
                            <input type="radio" name="userSex" size="50" value="M" ${user.user_sex=="M"?"checked":""}>男
                            <input type="radio" name="userSex" size="50" value="W" ${user.user_sex=="W"?"checked":""}>女
                        </td>
                    </tr>
                    <tr>
                        <th>出生日期：</th>

                        <%--                        出生日期的格式化--%>
                        <td><input class="common-text" name="userBirthday" size="50" value=
                        <fmt:parseDate var="dateObj" value="${user.user_birthday}" type="DATE"
                                       pattern="yyyy-MM-dd HH:ss:mm"/>
                        <fmt:formatDate var="reTime" value='${dateObj}' pattern='yyyy-MM-dd HH:ss:mm'/>
                        ${reTime}
                                type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>电子邮箱：</th>
                        <td>
                            <input class="common-text required" id="userEmail" name="userEmail" size="50"
                                   value="${user.user_email}"
                                   type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>手机号码：</th>
                        <td>
                            <input class="common-text required" id="userPhone" name="userPhone" size="50"
                                   value="${user.user_phone}"
                                   type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>收货地址：</th>
                        <td>
                            <input class="common-text required" id="userAddress" name="userAddress" size="50"
                                   value="${user.user_address}"
                                   type="text">
                        </td>
                    </tr>

                    <tr>
                        <th></th>
                        <td>
                            <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                            <%--                            history.go(-1)即可完成返回操作--%>
                            <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>

</div>
<!--/main-->
</div>
</body>
</html>